﻿using System.Collections.Generic;
using System.ServiceModel;
using eBookDirectory.Common.Dtos;

namespace eBookDirectory.Common.ServiceContracts
{
    [ServiceContract(Namespace = "http://eBookDirectory/BookService/")]
    public interface IBookService
    {
        [OperationContract]
        BookDto CreateNewCustomer(BookDto customer);

        [OperationContract]
        BookDto GetById(long id);

        [OperationContract]
        BookDto UpdateCustomer(BookDto customer);

        [OperationContract]
        List<BookDto> FindAll();
    }
}
